<template>
	<view class="container">

		<uni-search-bar v-model="searchValue" placeholder="请输入内容搜索" bgColor="#EEEEEE" @confirm="search" />
		<uni-row>
			<uni-col :span="4" style="margin-left: 15px;"><uni-tag @click="a()" :inverted="true" text="商品"
					type="primary" /></uni-col>
			<uni-col :span="4"><uni-tag @click="b()" :inverted="true" text="公告" type="primary" /></uni-col>
		</uni-row>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchValue: ""

			}
		},
		methods: {
			search(res) {
			this.a();
			},
			a() {
				console.log(this.searchValue)
				uni.navigateTo({
					url: '/pages/goods/goods?searchValue='+this.searchValue
				});
			},
			b(){
				uni.navigateTo({
					url: '/pages/notice/notice?searchValue='+this.searchValue
				});
				
			}


		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>